<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      JasPer-2.0.14
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="harfbuzz.html" title=
          "HarfBuzz-2.6.4">Prev</a>
          <p>
            HarfBuzz-2.6.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="lcms.html" title="Little CMS-1.19">Next</a>
          <p>
            Little CMS-1.19
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="jasper" name="jasper"></a>JasPer-2.0.14
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to JasPer
        </h2>
        <p>
          The <span class="application">JasPer</span> Project is an
          open-source initiative to provide a free software-based reference
          implementation of the JPEG-2000 codec.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://www.ece.uvic.ca/~frodo/jasper/software/jasper-2.0.14.tar.gz">
                http://www.ece.uvic.ca/~frodo/jasper/software/jasper-2.0.14.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 23561b51da8eb5d0dc85b91eff3d9a7f
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.6 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 11 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU (with tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          JasPer Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="cmake.html" title=
          "CMake-3.16.4">CMake-3.16.4</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="libjpeg.html" title=
          "libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../x/freeglut.html" title=
          "Freeglut-3.2.1">Freeglut-3.2.1</a> (required for <span class=
          "command"><strong>jiv</strong></span>), <a class="xref" href=
          "doxygen.html" title="Doxygen-1.8.17">Doxygen-1.8.17</a> (needed
          for generating html documentation), and <a class="xref" href=
          "../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> (needed to regnerate
          the pdf documentation)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/jasper">http://wiki.linuxfromscratch.org/blfs/wiki/jasper</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of JasPer
        </h2>
        <pre class="userinput">
<kbd class="command">mkdir BUILD &amp;&amp;
cd    BUILD &amp;&amp;

cmake -DCMAKE_INSTALL_PREFIX=/usr    \
      -DCMAKE_BUILD_TYPE=Release     \
      -DCMAKE_SKIP_INSTALL_RPATH=YES \
      -DJAS_ENABLE_DOC=NO            \
      -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-2.0.14 \
      ..  &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          test</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class=
          "parameter"><code>-DCMAKE_SKIP_INSTALL_RPATH=YES</code></em>: This
          option removes embedded library search paths.
        </p>
        <p>
          <em class="parameter"><code>-DJAS_ENABLE_DOC=NO</code></em>: This
          option disables rebuilding the pdf documentation if <a class="xref"
          href="../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> is installed.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">imgcmp, imginfo, jasper, and jiv</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libjasper.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/jasper and
              /usr/share/doc/jasper-2.0.14</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="imgcmp" name="imgcmp"></a><span class=
                    "term"><span class=
                    "command"><strong>imgcmp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    compares two images of the same geometry.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="imginfo" name="imginfo"></a><span class=
                    "term"><span class=
                    "command"><strong>imginfo</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    displays information about an image.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="jasper-command" name=
                    "jasper-command"></a><span class="term"><span class=
                    "command"><strong>jasper</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts images between formats (BMP, JPS, JPC, JPG, PGX,
                    PNM, MIF, and RAS).
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="jiv" name="jiv"></a><span class=
                    "term"><span class="command"><strong>jiv</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    displays images.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="jasper-lib" name="jasper-lib"></a><span class=
                    "term"><code class="filename">libjasper.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a library used by programs for reading and writing
                    JPEG2000 format files.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 15:15:05 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="harfbuzz.html" title=
          "HarfBuzz-2.6.4">Prev</a>
          <p>
            HarfBuzz-2.6.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="lcms.html" title="Little CMS-1.19">Next</a>
          <p>
            Little CMS-1.19
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
